import request from '@/utils/request';

const access_token = sessionStorage.getItem('token');



//查询实践树形解构列表
export async function getStudentList (params) { 
  return request('/api2/practiceType/list', { 
    headers: {
      access_token,
    },
    params,
  });
}


//新增实践类型  
export async function addStudentList(params) { 
    return request('/api2/practiceType/add', {
      method:'POST',
      headers: {
        access_token,
      },
      params,
    });
  }

//更新实践列表
export async function updataStudentList(params) { 
  return request('/api2/practiceType/edit', { 
    headers: {
      access_token,
    },
    params,
  });
}



//删除实践列表
export async function deleteStudentList(params) { 
  return request('/api2/practiceType/remove', { 
    headers: {
      access_token,
    },
    params,
  });
}
